import { defineStore } from 'pinia'
import {Story} from "@/utils/story";
export const storyStore = defineStore('story', {
    state: () => ({story:new Story("")}),
    getters: {
        getStory: (state) => {return state.story}
    },
    actions: {
        setStory(story:Story){
            this.story = story
        },
        updateStory(story:Story){
            this.story = story
        }
    }
})
